package a66weding.com.jiehuntong.fragment;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import java.util.List;

import a66weding.com.jiehuntong.R;
import a66weding.com.jiehuntong.activity.ContainerActivity;
import a66weding.com.jiehuntong.adapter.MyBaseAdapter;

/**
 * Created by admin on 2016/7/5.
 */
public class Engagement extends MyBaseFragment{
    private  Context context;
    private  View rootView;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        ;rootView = inflater.inflate(R.layout.fragment_engagement,container,false);
        context = getActivity();
        return rootView;
    }

    @Override
    public View initRootView() {

        return rootView;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        init();
    }
    private void init(){
        if (getArguments() != null) {
            //获取title
            String titleS = getArguments().getString(ContainerActivity.EXTRA_STRING_TITLE);
            //设定title;
            setTitleTv(titleS);
        }

    }

}
